#define CAPABILITY 10000
char bitmap[CAPABILITY / sizeof(char) / 8];

void set(int index)
{
    bitmap[index / 8] |= (1 << (index % 8));
}

void clr(int index)
{
    bitmap[index / 8] &= ~(1 << (index % 8));
}

bool test(int index)
{
    return (bitmap[index / 8] & (1 << (index % 8))) != 0;
}

int main()
{
    return 0;
}
